package cc.admin.modules.sys.entity;

import cc.admin.common.aspect.annotation.Dict;
import cc.admin.common.sys.vo.TenantModel;
import cc.admin.poi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @Description: 岗位管理
 * @Author: cc-admin
 * @Date:   2022-01-13
 * @Version: V1.0.0
 */
@Data
@TableName("sys_position")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sys_position对象", description="岗位管理")
public class SysPosition extends TenantModel {

	/**主键*/
	@Excel(name = "主键", width = 15)
    @ApiModelProperty(value = "主键")
	private String id;
	/**岗位名称*/
	@Excel(name = "岗位名称", width = 15)
    @ApiModelProperty(value = "岗位名称")
	private String postName;
	/**岗位编码*/
	@Excel(name = "岗位编码", width = 15)
    @ApiModelProperty(value = "岗位编码")
	private String postCode;
	/**类型*/
	@Excel(name = "类型", width = 15)
    @Dict(dicCode = "position_type")
    @ApiModelProperty(value = "类型")
	private String type;
	/**所属部门*/
	@Excel(name = "所属部门", width = 15)
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @ApiModelProperty(value = "所属部门")
	private String departId;
	/**是否为部门长 1：是 0：否*/
	@Excel(name = "是否为部门长 1：是 0：否", width = 15)
    @Dict(dicCode = "yes_no")
    @ApiModelProperty(value = "是否为部门长 1：是 0：否")
	private String isMinister;
	/**是否为高级船员 1：是 0：否*/
	@Excel(name = "是否为高级船员 1：是 0：否", width = 15)
    @Dict(dicCode = "yes_no")
    @ApiModelProperty(value = "是否为高级船员 1：是 0：否")
	private String isOfficers;
	/**排序*/
	@Excel(name = "排序", width = 15)
    @ApiModelProperty(value = "排序")
	private Integer px;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 15)
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 15)
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
}
